//
//  UIImage+Ext.h
//  WebJs
//
//  Created by lizq on 16/9/14.
//  Copyright © 2016年 lizq. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (Ext)

@property(nonatomic,strong,readwrite) CALayer *layer;

@property(nonatomic,strong,readwrite) NSString *keyWord;


/**
 * theme color
 */
- (UIColor *)themeColor;
@end


@interface Color  : NSObject
@property(nonatomic,assign)int r;
@property(nonatomic,assign)int g;
@property(nonatomic,assign)int b;
- (instancetype)initWithR:(int)r green:(int)g blue:(int)b;

- (int)distanceToObject:(Color *)obj;

- (BOOL)compare:(Color *)color;
@end
